<%@ page language="java" pageEncoding="UTF-8"
	errorPage="../../defaultException.jsp"%>
<%@include file="../../tags.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>修改目的地信息</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body>
	<form id="fm" method="post" enctype="multipart/form-data">

		<table class="fitem">
			<tr>
				<td><label>中文名:</label>
				</td>
				<td><input name="name" required="true"
					data-options="validType:'length[0,32]'"
					value="${resourceTypeItem.name }" class="easyui-validatebox" />
				</td>
				<td><label>英文名:</label>
				</td>
				<td><input name="enname"
					data-options="validType:'length[0,64]'" class="easyui-validatebox"
					value="${resourceTypeItem.enname }" required="true" />
				</td>
			</tr>
			
			<tr>
				<td><label>电话:</label>
				</td>
				<td><input name="itemExt.telephone"
					data-options="validType:'length[0,32]'" class="easyui-validatebox"
					value="${resourceExt.telephone }" />
				</td>
				<td><label>邮箱:</label>
				</td>
				<td><input name="itemExt.email" value="${resourceExt.email }"
					data-options="validType:'email'" class="easyui-validatebox" />
				</td>
			</tr>
			
			<tr>
				<td><label>价格:</label>
				</td>
				<td><input name="itemExt.price" value="${resourceExt.price }"
					data-options="validType:'length[0,16]'" class="easyui-validatebox" />
				</td>
				<td><label>营业时间:</label>
				</td>
				<td><input name="itemExt.tradeTime"
						data-options="validType:'length[0,64]'" class="easyui-validatebox" value="${resourceExt.tradeTime }"/>
				</td>
			</tr>
			<tr class="fitem">
				<td><label>经度:</label></td>
				<td><input name="lng" class="easyui-validatebox" value="${resourceTypeItem.lng }"
					required="required" validType="numberbox" /></td>
				<td><label>纬度:</label></td>
				<td><input name="lat" class="easyui-validatebox" value="${resourceTypeItem.lat }" 
					required="required" validType="numberbox" /></td>
			</tr>
			<tr>
				<td><label>地址:</label>
				</td>
				<td colspan="3"><textarea name="itemExt.address" style="width: 392px; height: 80px"
						data-options="validType:'length[0,256]'"
						class="easyui-validatebox">${resourceExt.address }</textarea>
				</td>
			</tr>
			<tr>
				<td><label>网址:</label>
				</td>
				<td colspan="3"><textarea name="itemExt.site" style="width: 392px; height: 80px"
						data-options="validType:'length[0,128]'"
						class="easyui-validatebox">${resourceExt.site }</textarea>
				</td>
			</tr>
			<tr>
				<td><label>关联数据:</label></td>
				<td>
					<input id="dataId" name="relId" required="true" validType="numberbox" value="${resourceTypeItem.relId }" />
					<button onclick="query(${featureId})" type="button">查询</button>
				</td>
			</tr>
			<tr>
				<td><label>描述信息:</label>
				</td>
				<td colspan="3"><textarea name="destDesc" id="destDesc"
						style="width: 392px; height: 80px"
						data-options="validType:'length[0,1024]'"
						class="easyui-validatebox" required="true">${resourceTypeItem.destDesc }</textarea>
				</td>
			</tr>
			<tr>
				<td><label>新图片:</label>
				</td>
				<td colspan="3"><input name="origImgFile" type="file" required="true" />
				</td>
			</tr>
			<tr> 
				<td><label>旧图片:</label>
				</td>
				<td colspan="3"><img
					src="${cpath}${img_preffix}${resourceTypeItem.origImg }"
					width='150' height='100' />
				</td>
			</tr>
			<input name="id" type="hidden" value="${resourceTypeItem.id }" />
			<input name="origImg" type="hidden"
				value="${resourceTypeItem.origImg }" />
		</table>
	</form>
	<script type="text/javascript">
		$('#destDesc').ceditor();
	</script>
	<style type="text/css">
#fm {
	margin: 0;
	padding: 40px 40px;
}

.ftitle {
	font-size: 14px;
	font-weight: bold;
	padding: 5px 0;
	margin-bottom: 10px;
	border-bottom: 1px solid #ccc;
}

.fitem {
	margin-bottom: 5px;
}

.fitem label {
	display: inline-block;
	width: 90px;
}
</style>
</body>
</html>